Ext.ns('ru.proburo.oms.order.components');

/**
 * ru.proburo.oms.order.components.Tree
 * @extends ru.proburo.oms.components.AbstractTree
 */
ru.proburo.oms.order.components.Tree = Ext.extend(ru.proburo.oms.components.AbstractTree, {
	
	initLoader: function()
	{
		return new Ext.tree.TreeLoader();
	},
	
	initRoot: function()
	{
		return new Ext.tree.AsyncTreeNode({
			children:
			[
				{
					expanded: true,
					text: 	  'Все',
					iconCls:  'silk-table',
					status:   -1,
					children:
					[
						{
							text: 	 'Сохраненные',
							iconCls: 'silk-table-edit',
							status:  0,
							leaf: 	 true
						},
						{
							text: 	 'Отправленные',
							iconCls: 'silk-table-go',
							status:  10,
							leaf: 	 true
						}
					]
				}
			]
		})
	}
	
});